-- Viral Resistance - T-Engine 4 Module
-- Copyright (C) 2010 Mikolai Fajer
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
--
-- Mikolai Fajer "yufra"
-- mfajer@gmail.com

newBirthDescriptor{
	type = "base",
	name = "base",
	desc = {
	},
	experience = 1.0,
	body = { INVEN = 1000, MAINHAND = 1, OFFHAND = 1, BODY = 1, HEAD = 1, HANDS = 1, FEET = 1, AMMO = 1 },

	copy = {
		combat = {
			dam=1, 
			dammod={
				str=0.7,
			},
		},
		max_level = 10,
		lite = 4,
		can_climb = true,
		money = 10,
		starting_quest = "code_green",
		starting_intro = "doctor",
	},
}

-- Sexes
load("/data/birth/sexes.lua")

newBirthDescriptor{
	type = "role",
	name = "Boxer",
	desc =
	{
		"Healthy as an ox and comfortable fighting without a weapon.",
	},
	stats = { str=1, con=1, },
	talents_types = {
		["combat/unarmed"]={true, 0.3},
		["combat/firearms-basic"]={true, 0.0},
		["utility/fitness"]={true, 0.3},
		["viral/control"]={true, 0.0},
	},
	talents = {
		[ActorTalents.T_KICK]=1,
		[ActorTalents.T_VIRAL_RESISTANCE]=1,
		[ActorTalents.T_SHOOT]=1,
		[ActorTalents.T_SPRINT]=1,
	},
	copy = {
		combat = { 
			dammod={
				str=1.0,
			},
		},
	},
}

newBirthDescriptor{
	type = "role",
	name = "Policeman",
	desc =
	{
		"Upholder of the law, skilled with firearms.",
	},
	stats = { str=1, dex=1, },
	talents_types = {
		["combat/unarmed"]={true, 0.2},
		["combat/firearms-basic"]={true, 0.3},
		["utility/medical"]={true, 0.0},
		["viral/control"]={true, 0.0},
	},
	talents = {
		[ActorTalents.T_SHOOT]=2,
		[ActorTalents.T_HEADSHOT]=1,
        },
	copy = {
		resolvers.equip{ id=true,
			{type="firearm", subtype="pistol", autoreq=true},
			{type="ammo", subtype="pistol", autoreq=true},
		},
	}
}

newBirthDescriptor{
	type = "role",
	name = "Doctor",
	desc =
	{
		"A trained medical professional.",
	},
	stats = { dex=1, con=1, },
	talents_types = {
		["combat/firearms-basic"]={true, -0.2},
		["utility/medical"]={true, 0.5},
		["viral/control"]={true, 0.2},
	},
	talents = {
		[ActorTalents.T_SHOOT]=1,
		[ActorTalents.T_FIRST_AID_EXPERTISE]=1,
		[ActorTalents.T_VIRAL_RESISTANCE]=1,
        [ActorTalents.T_VIRAL_MIMIC]=1,
	},
	copy = {
		resolvers.inventory{ id=true,
			{type="medicine", autoreq=true},
		},
	}
}

-- Added for sandbox play
newBirthDescriptor{
	type = "location",
	name = "Hospital",
	desc = {
		"The storyline with quests and such.  This is very much a work in progress, and may be 'un-winnable'.",
	},
	copy = {
		starting_level = 2,
		starting_zone = "hospital-static",
	},
}
newBirthDescriptor{
	type = "location",
	name = "Sandbox",
	desc = {
		"A simple sandbox dungeon for those who want to just kill zombies.",
	},
	copy = {
		starting_level = 1,
		starting_zone = "sandbox",
		starting_intro = "sandbox",
		resolvers.equip{ id=true,
			{type="firearm", subtype="pistol", autoreq=true},
			{type="ammo", subtype="pistol", autoreq=true},
		},
		resolvers.inventory{
			{type="medicine", autoreq=true},
			{type="medicine", autoreq=true},
			{type="medicine", autoreq=true},
			{type="medicine", autoreq=true},
		},
	}}
